package o;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

public class bjz {
    private static Map<String, Constructor<?>> ˊ = new HashMap();
    private static Map<String, Object> ˋ = new HashMap();

    public static Class<?> ˎ(String str) throws ClassNotFoundException {
        return Class.forName(str);
    }

    public static Field ˎ(Class<?> cls, String str) throws NoSuchFieldException {
        return cls.getField(str);
    }

    public static Method ˋ(Class<?> cls, String str, Object... objArr) throws ClassNotFoundException, NoSuchMethodException {
        Class[] clsArr = new Class[objArr.length];
        for (int i = 0; i < objArr.length; i++) {
            Object obj = objArr[i];
            if (obj instanceof Class) {
                clsArr[i] = (Class) obj;
            } else if (obj instanceof String) {
                clsArr[i] = ˎ((String) obj);
            }
        }
        return cls.getMethod(str, clsArr);
    }

    public static Object ˋ(Field field, Object obj) throws IllegalAccessException, IllegalArgumentException {
        return field.get(obj);
    }

    public static Object ˏ(Method method, Object obj, Object... objArr) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
        return method.invoke(obj, objArr);
    }
}
